package com.woniuxy.service.impl;


import com.woniuxy.entity.User;
import com.woniuxy.service.UserService;

import java.util.List;

public class UserServiceImpl2 implements UserService {
    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    @Override
    public User findOne(int id) {
        return null;
    }

    @Override
    public List<User> findAll() {
        System.out.println("模拟JDK动态增强效果前置日志！");
        List<User> all = userService.findAll();
        System.out.println("模拟JDK动态增强效果后置日志！");
        return all;
    }

    @Override
    public int addOne(User user) {
        return 0;
    }

    @Override
    public int updateOne(User user) {
        return 0;
    }

    @Override
    public int deleteOne(int id) {
        return 0;
    }
}
